package com.codemonkey.lq.qd.facotry.config;

/**
 * Service和Action执行状态的监听.观察者模式的实现.
 * 
 * 仿Spring中的ApplicationEventMulticaster,其作为一个字段位于AbstractApplicationContext类中
 * 仿Spring的package结构,将其放在顶级目录
 * @author LQ
 *
 */
public interface ExecuteEventMulticaster {
	
	void addListener(ExecuteEventListener<ExecutionEvent> listener);
	void removeListener(ExecuteEventListener<ExecutionEvent> listener);
	
	void removeAllListeners();
	
	void multicastEvent(final ExecutionEvent event); 
}
